package com.joshua.dao.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.joshua.dao.EmployeeDAO;
import com.joshua.model.EmployeeVO;

@Repository
public class EmployeeDAOImpl implements EmployeeDAO {
 
    public List<EmployeeVO> getAllEmployees()
    {
        List<EmployeeVO> employees = new ArrayList<EmployeeVO>();
 
        EmployeeVO vo1 = new EmployeeVO();
        vo1.setId(1);
        vo1.setFirstName("Lokesh");
        vo1.setLastName("Gupta");
        employees.add(vo1);
 
        EmployeeVO vo2 = new EmployeeVO();
        vo2.setId(2);
        vo2.setFirstName("Raj");
        vo2.setLastName("Kishore");
        employees.add(vo2);
 
        return employees;
    }

	public EmployeeVO getEmployeeById(long id) {
		EmployeeVO vo2 = new EmployeeVO();
        vo2.setId((int)id);
        vo2.setFirstName("Joshua");
        vo2.setLastName("Shaw");
		return vo2;
	}
}
